package game.metalmax.packet.world {

	import flash.utils.ByteArray;
	
	import game.metalmax.packet.IPacket;

public class TransferOnRequest implements IPacket{

	public var heroID:String;
	public var animationConfigID:String;
	public var animationName:String;
	public var graphicID:String;
	public var vehicleID:String;
	public var direction:int;

	public function write(out:ByteArray):void{
		var len:int = 0;
		var i:int = 0;
		out.writeUTF(heroID==null?"":heroID);
		out.writeUTF(animationConfigID==null?"":animationConfigID);
		out.writeUTF(animationName==null?"":animationName);
		out.writeUTF(graphicID==null?"":graphicID);
		out.writeUTF(vehicleID==null?"":vehicleID);
		out.writeInt(direction);
	}
	public function read(inn:ByteArray):void{
		var len:int = 0;
		var i:int = 0;
		heroID = inn.readUTF();
		animationConfigID = inn.readUTF();
		animationName = inn.readUTF();
		graphicID = inn.readUTF();
		vehicleID = inn.readUTF();
		direction = inn.readInt();
}
}
}